﻿package com.floorplanner.lib3ds
{	
	public class Lib3dsCore
	{		
		public var debugMode:Boolean = true;
				
		public function Lib3dsCore( mode:Boolean = false )
		{
			this.debugMode = mode;
		}

		public function vector_add( dst:Array, a:Array, b:Array ):void
		{
			dst[0] = a[0] + b[0];
			dst[1] = a[1] + b[1];
			dst[2] = a[2] + b[2];
		}
		
		public function vector_sub( dst:Array, a:Array, b:Array ):void
		{
			dst[0] = a[0] - b[0];
			dst[1] = a[1] - b[1];
			dst[2] = a[2] - b[2];
		}
		
		/**
		 * 
		 * @param	msg
		 */
		protected function debug( msg:String ):void 
		{
			if( !debugMode ) return;
			trace( msg );
		}
	}
}
